import request from "../../util/request";

// 登录方法
export function login(userNameOrEmailAddress, password) {
  const data = {
    userNameOrEmailAddress,
    password,
  };
  return request({
    url: "/TokenAuth/Authenticate",
    headers: {
      "Abp.TenantId": 1,
      "Abp-TenantId": 1,
    },
    method: "post",
    data: data,
  });
}
